606 m Mega-tall Building¶
See the original tcl file of the model in OpenSees models for a 606 m Mega-tall Building and a python file converted by opstool.pre.tcl2py that you can download from hereMegatallBuilding.py.
[1]:
import time
import opstool as opst
[2]:
from data.MegatallBuilding import FEMmodel
FEMmodel()
Build model¶
[3]:
start = time.time()
opst.post.save_model_data(odb_tag="megatall-building")
end = time.time()
print("Data Saving: Time elapsed: ", end - start, " s")
OPSTOOL™ :: Model data has been saved to g:\opstool\docs\quick-start\.opstool.output/ModelData-megatall-building.zarr!
Data Saving: Time elapsed: 3.025362968444824 s
Visualization by Pyvista¶
[4]:
opst.vis.pyvista.set_plot_props(point_size=0, line_width=0.5, notebook=True) # For Jupyter Notebooks
start = time.time()
plotter = opst.vis.pyvista.plot_model(odb_tag="megatall-building")
plotter.show(jupyter_backend="static")
# plotter.show()
end = time.time()
print("Pyvista-Based: Time elapsed: ", end - start, " s")
OPSTOOL™ :: Loading model data from g:\opstool\docs\quick-start\.opstool.output/ModelData-megatall-building.zarr ...
Pyvista-Based: Time elapsed: 0.7574057579040527 s
Visualization with Plotly¶
[5]:
opst.vis.plotly.set_plot_props(point_size=0, line_width=0.4)
start = time.time()
fig = opst.vis.plotly.plot_model(odb_tag="megatall-building", show_outline=False)
fig.write_html("megatall-building-plotly.html", include_plotlyjs="cdn", auto_open=False)
fig.show()
# fig.show(renderer="browser")
end = time.time()
print("Plotly-Based: Time elapsed: ", end - start, " s")
OPSTOOL™ :: Loading model data from g:\opstool\docs\quick-start\.opstool.output/ModelData-megatall-building.zarr ...
Data type cannot be displayed: application/vnd.plotly.v1+json
Plotly-Based: Time elapsed: 3.15846586227417 s